﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000873 RID: 2163
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetUnlockTeleportScRsp : IMessage<GetUnlockTeleportScRsp>, IMessage, IEquatable<GetUnlockTeleportScRsp>, IDeepCloneable<GetUnlockTeleportScRsp>, IBufferMessage
	{
		// Token: 0x17001B44 RID: 6980
		// (get) Token: 0x060060B1 RID: 24753 RVA: 0x00101595 File Offset: 0x000FF795
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetUnlockTeleportScRsp> Parser
		{
			get
			{
				return GetUnlockTeleportScRsp._parser;
			}
		}

		// Token: 0x17001B45 RID: 6981
		// (get) Token: 0x060060B2 RID: 24754 RVA: 0x0010159C File Offset: 0x000FF79C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetUnlockTeleportScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001B46 RID: 6982
		// (get) Token: 0x060060B3 RID: 24755 RVA: 0x001015AE File Offset: 0x000FF7AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetUnlockTeleportScRsp.Descriptor;
			}
		}

		// Token: 0x060060B4 RID: 24756 RVA: 0x001015B5 File Offset: 0x000FF7B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetUnlockTeleportScRsp()
		{
		}

		// Token: 0x060060B5 RID: 24757 RVA: 0x001015C8 File Offset: 0x000FF7C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetUnlockTeleportScRsp(GetUnlockTeleportScRsp other) : this()
		{
			this.unlockTeleportList_ = other.unlockTeleportList_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060060B6 RID: 24758 RVA: 0x001015FE File Offset: 0x000FF7FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetUnlockTeleportScRsp Clone()
		{
			return new GetUnlockTeleportScRsp(this);
		}

		// Token: 0x17001B47 RID: 6983
		// (get) Token: 0x060060B7 RID: 24759 RVA: 0x00101606 File Offset: 0x000FF806
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> UnlockTeleportList
		{
			get
			{
				return this.unlockTeleportList_;
			}
		}

		// Token: 0x17001B48 RID: 6984
		// (get) Token: 0x060060B8 RID: 24760 RVA: 0x0010160E File Offset: 0x000FF80E
		// (set) Token: 0x060060B9 RID: 24761 RVA: 0x00101616 File Offset: 0x000FF816
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060060BA RID: 24762 RVA: 0x0010161F File Offset: 0x000FF81F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetUnlockTeleportScRsp);
		}

		// Token: 0x060060BB RID: 24763 RVA: 0x00101630 File Offset: 0x000FF830
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetUnlockTeleportScRsp other)
		{
			return other != null && (other == this || (this.unlockTeleportList_.Equals(other.unlockTeleportList_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060060BC RID: 24764 RVA: 0x00101680 File Offset: 0x000FF880
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.unlockTeleportList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060060BD RID: 24765 RVA: 0x001016CD File Offset: 0x000FF8CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060060BE RID: 24766 RVA: 0x001016D5 File Offset: 0x000FF8D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060060BF RID: 24767 RVA: 0x001016E0 File Offset: 0x000FF8E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			this.unlockTeleportList_.WriteTo(ref output, GetUnlockTeleportScRsp._repeated_unlockTeleportList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060060C0 RID: 24768 RVA: 0x00101730 File Offset: 0x000FF930
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.unlockTeleportList_.CalculateSize(GetUnlockTeleportScRsp._repeated_unlockTeleportList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060060C1 RID: 24769 RVA: 0x00101784 File Offset: 0x000FF984
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetUnlockTeleportScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.unlockTeleportList_.Add(other.unlockTeleportList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060060C2 RID: 24770 RVA: 0x001017D1 File Offset: 0x000FF9D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060060C3 RID: 24771 RVA: 0x001017DC File Offset: 0x000FF9DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 56U && num != 58U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.unlockTeleportList_.AddEntriesFrom(ref input, GetUnlockTeleportScRsp._repeated_unlockTeleportList_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400251E RID: 9502
		private static readonly MessageParser<GetUnlockTeleportScRsp> _parser = new MessageParser<GetUnlockTeleportScRsp>(() => new GetUnlockTeleportScRsp());

		// Token: 0x0400251F RID: 9503
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002520 RID: 9504
		public const int UnlockTeleportListFieldNumber = 7;

		// Token: 0x04002521 RID: 9505
		private static readonly FieldCodec<uint> _repeated_unlockTeleportList_codec = FieldCodec.ForUInt32(58U);

		// Token: 0x04002522 RID: 9506
		private readonly RepeatedField<uint> unlockTeleportList_ = new RepeatedField<uint>();

		// Token: 0x04002523 RID: 9507
		public const int RetcodeFieldNumber = 4;

		// Token: 0x04002524 RID: 9508
		private uint retcode_;
	}
}
